package ext.trace.kernel;

import math.math;

public class KernelGauss implements Kernel
{
    
    private static final double NORM_FACTOR = 1.982775391324732745287476405;
    
    
    public KernelGauss()
    {
        
    }
    
    
    public double eval(double aRadius, double aExtent)
    {
        double radOverExtSq = aRadius * aRadius / (aExtent * aExtent);
        double eval = NORM_FACTOR / aExtent * math.exp(-3.0 * radOverExtSq);
        return eval;
    }
    
}
